module.exports = {
  head: [
    ['meta', { name: 'referrer', content: 'no-referrer' }],
    // 引入jquery
    ["script", {
      "language": "javascript",
      "type": "text/javascript",
      "src": "https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"
    }],
    // 引入鼠标点击脚本
    ["script", {
      "language": "javascript",
      "type": "text/javascript",
      "src": "/js/MouseClickEffect.js"
    }]
  ],
  //打包配置
  base:'./',  
  dest: './dist', 
  //主题
  theme: 'reco',
  // 插件：置顶按钮、图片缩放
  plugins: ['@vuepress/back-to-top', '@vuepress/medium-zoom',],
  // 左上角标题
  title: '小小春',
  // markdown 相关配置
  markdown: {
    // 代码块行号
    lineNumbers: true,
  },
  themeConfig: {
    nav: [
      { text: '首页', link: '/' },
      {
        text: '前端学习',
        items: [
          {
            text: '基础',
            items: [
              { text: 'HTML&CSS', link: '/notes/h5c3/css' },
              { text: 'javascript', link: '/notes/js/what_is_js' },
              { text: 'less', link: '/notes/less/less' },
            ]
          },
          {
            text: '框架',
            items: [
              { text: 'Vue', link: '/notes/vue/vuehexin' },
              { text: 'React', link: '/notes/react/react-basic' },
            ]
          },
          {
            text: '其它',
            items: [
              { text: 'Git', link: '/notes/git/git' },
              { text: 'Nodejs', link: '/notes/nodejs/node' },
              { text: 'webpack', link: '/notes/webpack/webpackhexin' },
              { text: 'vueperss', link: '/notes/press/vuepress' },
              { text: 'vscode', link: '/notes/vscode/vscode' },
            ]
          },
        ]
      },
      { text: '在线简历', link: '/resume/resume' },
    ],
    sidebar: require('./sidebar.js'),
    // 标题深度，2 表示提取 h2 和 h3 标题
    sidebarDepth: 2,
    // 启用页面滚动效果
    smoothScroll: true,
    // 最后更新时间
    lastUpdated: 'Last Updated',
    mode: 'light', // 默认 auto，auto 跟随系统，dark 暗色模式，light 亮色模式
    modePicker: true,// 默认 true，false 不显示模式调节按钮，true 则显示
    subSidebar: 'auto',//在所有页面中启用自动生成子侧边栏，原 sidebar 仍然兼容
    type: 'test',//首页组件
    logo: '/assets/img/hero.png',
    // 导航栏显示 gitee 仓库
    repo: 'https://gitee.com/ccymax/practice',
    repoLabel: 'Gitee',
  }
}